import request from "@/utils/request";

// 查询合同签约方连列表
export function listContractSigningPartyConnection(query) {
  return request({
    url: "/contract/ContractSigningPartyConnection/list",
    method: "get",
    params: query,
    handleError: true,
  });
}

// 查询合同签约方连详细
export function getContractSigningPartyConnection(
  contractSigningPartyConnectionId
) {
  return request({
    url:
      "/contract/ContractSigningPartyConnection/" +
      contractSigningPartyConnectionId,
    method: "get",
    handleError: true,
  });
}

// 新增合同签约方连
export function addContractSigningPartyConnection(data) {
  return request({
    url: "/contract/ContractSigningPartyConnection",
    method: "post",
    data: data,
  });
}

// 修改合同签约方连
export function updateContractSigningPartyConnection(data) {
  return request({
    url: "/contract/ContractSigningPartyConnection",
    method: "put",
    data: data,
  });
}

// 删除合同签约方连
export function delContractSigningPartyConnection(
  contractSigningPartyConnectionId
) {
  return request({
    url:
      "/contract/ContractSigningPartyConnection/" +
      contractSigningPartyConnectionId,
    method: "delete",
  });
}
